package com.jarvis.hospital.prescription;


import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.jarvis.hospital.ImageActivity;
import com.jarvis.hospital.R;
import com.jarvis.hospital.common.BaseActivity;
import com.jarvis.hospital.patient.PatientManageFragment;

import butterknife.BindView;


public class SpdActivity extends BaseActivity implements View.OnClickListener{
    private PrescriptionFragment prescriptionFragment;
    @BindView(R.id.rel_left)
    RelativeLayout rel_left;
    @BindView(R.id.tv_title)
    TextView tv_title;
    @Override
    public int getLayoutId() {
        return R.layout.activity_spd;
    }

    @Override
    public void initData() {;
        if (null == prescriptionFragment) {
            prescriptionFragment = PrescriptionFragment.newInstance(0);
        }
        changeFragment(R.id.main_frame, prescriptionFragment);
    }

    @Override
    public void initView() {
        rel_left.setOnClickListener(this);
        tv_title.setText("审批单");
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.rel_left:
                finish();
                break;
        }
    }
}
